package data;

public class ChatServerInfo {
	
	private volatile long time;
	private volatile boolean isRunning;
	
	private static ChatServerInfo info;
	
	private ChatServerInfo(){}
	
	public static ChatServerInfo getInstance(){
		if (info==null) {
			synchronized (ChatServerInfo.class) {
				if (info==null) {
					info = new ChatServerInfo();
				}
			}
		}
		return info;
	}
	
	public long getTime() {
		return time;
	}
	public void setTime(long time) {
		this.time = time;
	}
	public boolean isRunning() {
		return isRunning;
	}
	public void setRunning(boolean isRunning) {
		this.isRunning = isRunning;
	}
	
	

}
